home *** CD-ROM | disk | FTP | other *** search
/ Aminet 52 / Aminet 52 (2002)(GTI - Schatztruhe)[!][Dec 2002].iso / Aminet / util / moni / Scout-src.lha / source / scout_defs.h < prev    next >
C/C++ Source or Header  |  2002-09-16  |  3KB  |  82 lines

  1. /**
  2.  * Scout - The Amiga System Monitor
  3.  *
  4.  *------------------------------------------------------------------
  5.  *
  6.  * This program is free software; you can redistribute it and/or modify
  7.  * it under the terms of the GNU General Public License as published by
  8.  * the Free Software Foundation; either version 2 of the License, or
  9.  * any later version.
  10.  *
  11.  * This program is distributed in the hope that it will be useful,
  12.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.  * GNU General Public License for more details.
  15.  *
  16.  * You should have received a copy of the GNU General Public License
  17.  * along with this program; if not, write to the Free Software
  18.  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19.  *
  20.  * You must not use this source code to gain profit of any kind!
  21.  *
  22.  *------------------------------------------------------------------
  23.  *
  24.  * @author Andreas Gelhausen
  25.  * @author Richard Körber <rkoerber@gmx.de>
  26.  */
  27.  
  28. #ifndef SCOUT_DEFS_H
  29. #define SCOUT_DEFS_H
  30.  
  31. /*************************************************************/
  32. /*                  Compiler specific stuff                  */
  33. /*************************************************************/
  34.  
  35. #define REG(x) register __ ## x
  36. #define ASM    __asm
  37. #define SAVEDS __saveds
  38.  
  39. /*************************************************************/
  40. /*                      User definitions                     */
  41. /*************************************************************/
  42.  
  43. #define aprintf             Printf
  44. #define points2ram          TypeOfMem
  45.  
  46. #define FIRSTSCREEN         ((struct Screen *)    (((struct IntuitionBase *)IntuitionBase)->FirstScreen))
  47.  
  48. #define DEVINFO             ((struct DosInfo *)   (BADDR(((struct DosLibrary *)DOSBase)->dl_Root->rn_Info)))
  49.  
  50. #define FILENAME_LENGTH     256
  51. #define VERSION_LENGTH      16
  52. #define ADDRESS_LENGTH      16
  53. #define PATH_LENGTH         256
  54. #define PATH_LENGTH_CHAR    "256"
  55. #define NODENAME_LENGTH     256
  56. #define TEXT_LENGTH         256
  57. #define TEXT_LENGTH_CHAR    "256"
  58. #define NODETYPE_LENGTH     16
  59. #define NUMBER_LENGTH       16
  60. #define TASK_STATE_LENGTH   16
  61. #define TMP_STRING_LENGTH   1024
  62. #define TS_FROZEN           0xff
  63. #define PATTERN_LENGTH      (PATH_LENGTH * 2 + 2)
  64.  
  65. #define ITERATE_LIST(list, type, node)                  for (node = (type)((struct List *)(list))->lh_Head; ((struct Node *)node)->ln_Succ; node = (type)((struct Node *)node)->ln_Succ)
  66. #define ITERATE_LIST_REVERSE(list, type, node)          for (node = (type)((struct List *)(list))->lh_TailPred; ((struct Node *)node)->ln_Pred; node = (type)((struct Node *)node)->ln_Pred)
  67. #define ITERATE_CHANGING_LIST(list, type, node, temp)   for (node = (type)((struct List *)(list))->lh_Head; temp = (type)((struct Node *)node)->ln_Succ; node = temp)
  68.  
  69. #define MakeID(a,b,c,d)     ((ULONG) (a)<<24 | (ULONG) (b)<<16 | (ULONG) (c)<<8 | (ULONG) (d))
  70.  
  71. #define MyTextFrame         TextFrame,MUIA_Background,MUII_TextBack
  72.  
  73. #define LabelA(label)   TextObject,MUIA_Text_PreParse,"\033r",\
  74.             MUIA_Text_Contents,label,TextFrame,MUIA_FramePhantomHoriz,\
  75.             TRUE,End
  76.  
  77. #define LabelB(label)   TextObject,MUIA_Text_PreParse,"\033r",\
  78.             MUIA_Text_Contents,label,TextFrame,MUIA_FramePhantomHoriz,\
  79.             TRUE,MUIA_Weight,0,MUIA_InnerLeft,0,MUIA_InnerRight,0,End
  80.  
  81. #endif /* SCOUT_DEFS_H */
  82.